package com.tocean.demo.entity.questionbank;

import com.tocean.demo.entity.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@Slf4j
@Data
@Accessors(chain = true)
@Entity
@Table(name = "t_his_testrecord")
public class HisTestRecord extends BaseEntity {


    @Column(name = "userId")
    private String userId="";

    /**
     * 每个用户做完考试的id顺序  看HisTestScore 里面的注释
     */
    @Column(name = "sequenceId")
    private String sequenceId="";

    /**
     * 题目序号
     */
    @Column(name = "cid")
    private String cid="";


    @Column(name = "content")
    private String content;
    /**
     * 用户选的答案
     */
    @Column(name = "choice")
    private String choice="";

    /**
     * 题目的正确答案
     */
    @Column(name = "rAnswer")
    private String rAnswer="";

    @Column(name = "rightcount")
    private int rightcount=0;

    @Column(name = "wrongcount")
    private int wrongcount=0;


}
